package com.dumengwei.senior1.week2.entity;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

public class Dantou {
	/**
	 * 主键
	 */
	private Integer contractNo;
	/**
	 * 日期
	 */
	@DateTimeFormat(pattern="yyyy-MM-dd")
	private Date contractDate;
	/**
	 * 卖方
	 */
	private String seller;
	/**
	 * 买方
	 */
	private String buyer;
	/**
	 * 总值
	 */
	private Double totalValue;
	/**
	 * 附件
	 */
	private String	appendx;
	/**
	 * 备注
	 */
	private String remarks;
	
	/**
	 * 起始时间
	 */
	@DateTimeFormat(pattern="yyyy-MM-dd")
	private Date minDate;
	/**
	 * 结束时间
	 */
	@DateTimeFormat(pattern="yyyy-MM-dd")
	private Date maxDate;
	/**
	 * 最小总值
	 */
	private Double mintotalValue;
	/**
	 * 最大总值
	 */
	private Double maxtotalValue;
	public Dantou() {
		// TODO Auto-generated constructor stub
	}
	public Dantou(Integer contractNo, Date contractDate, String seller, String buyer, Double totalValue, String appendx,
			String remarks) {
		super();
		this.contractNo = contractNo;
		this.contractDate = contractDate;
		this.seller = seller;
		this.buyer = buyer;
		this.totalValue = totalValue;
		this.appendx = appendx;
		this.remarks = remarks;
	}
	
	public Date getMinDate() {
		return minDate;
	}
	public void setMinDate(Date minDate) {
		this.minDate = minDate;
	}
	public Date getMaxDate() {
		return maxDate;
	}
	public void setMaxDate(Date maxDate) {
		this.maxDate = maxDate;
	}
	
	public Double getMintotalValue() {
		return mintotalValue;
	}
	public void setMintotalValue(Double mintotalValue) {
		this.mintotalValue = mintotalValue;
	}
	public Double getMaxtotalValue() {
		return maxtotalValue;
	}
	public void setMaxtotalValue(Double maxtotalValue) {
		this.maxtotalValue = maxtotalValue;
	}
	public Integer getContractNo() {
		return contractNo;
	}
	public void setContractNo(Integer contractNo) {
		this.contractNo = contractNo;
	}
	public Date getContractDate() {
		return contractDate;
	}
	public void setContractDate(Date contractDate) {
		this.contractDate = contractDate;
	}
	public String getSeller() {
		return seller;
	}
	public void setSeller(String seller) {
		this.seller = seller;
	}
	public String getBuyer() {
		return buyer;
	}
	public void setBuyer(String buyer) {
		this.buyer = buyer;
	}
	public Double getTotalValue() {
		return totalValue;
	}
	public void setTotalValue(Double totalValue) {
		this.totalValue = totalValue;
	}
	public String getAppendx() {
		return appendx;
	}
	public void setAppendx(String appendx) {
		this.appendx = appendx;
	}
	public String getRemarks() {
		return remarks;
	}
	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}
	@Override
	public String toString() {
		return "Dantou [contractNo=" + contractNo + ", contractDate=" + contractDate + ", seller=" + seller + ", buyer="
				+ buyer + ", totalValue=" + totalValue + ", appendx=" + appendx + ", remarks=" + remarks + "]";
	}
	

}
